import org.springframework.context.support.ClassPathXmlApplicationContext;


public class ClientCXF {

	public static void main(String[] args) {
		
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"/applicationContext.xml"});
		
		//获取服务器的对象处理
		HelloWorld hw = (HelloWorld)context.getBean("clientCXF");
		System.out.println(hw.sayHello("涂有2"));
	}
}
